<?php
// +----------------------------------------------------------------------
// | VueAdmin框架[基于ThinkPHP5开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2018 http://www.vueadmin.org
// +----------------------------------------------------------------------
// | VueAdmin承诺基础框架永久免费开源，您可用于学习和商用，但必须保留软件版权信息。
// +----------------------------------------------------------------------
// | Author: sept <917088650@qq.com>，开发者QQ群：63131383
// +----------------------------------------------------------------------

//登录操作路由
Route::post('access/access_token', 'system/Admin/login');
Route::get('access/check_token/:token', 'system/Token/check');


//管理员操作路由
Route::post('system/admin', 'system/Admin/create')->middleware('auth');
Route::put('system/admin/:id', 'system/Admin/edit')->middleware('auth');
Route::delete('system/admin/:id', 'system/Admin/delete')->middleware('auth');
Route::get('system/admin', 'system/Admin/view')->middleware('auth');


//菜单管理
Route::get('system/menu', 'system/Menu/view')->middleware('auth');
Route::post('system/menu', 'system/Menu/add')->middleware('auth');
Route::put('system/menu/:id', 'system/Menu/edit')->middleware('auth');
Route::delete('system/menu/:id', 'system/Menu/delete')->middleware('auth');


//角色管理
Route::put('system/role/:id', 'system/Role/edit')->middleware('auth');
Route::post('system/role', 'system/Role/add')->middleware('auth');
Route::get('system/role', 'system/Role/view')->middleware('auth');
Route::delete('system/role/:ids', 'system/Role/delete')->middleware('auth');


Route::miss('system/Miss/index');